package com.jie.model.po.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

// Airport.java
@Data
@TableName("airport")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Airport implements Serializable {
    
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;
    
    private String name;
    
    private String code;
    
    private Long cityId;
    
    private String address;
    
    private BigDecimal latitude;
    
    private BigDecimal longitude;
    
    private Integer terminalCount;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}